const mongoose = require("mongoose")
const Schema = mongoose.Schema
//user模型==>users集合

//给集合进行限制
const WorkType = {
    title:String,
    introduction:String,
    detail:String,
    cover:String,
    editTime:Date

}
const WorkModel = mongoose.model("work",new Schema(WorkType))

module.exports = WorkModel